Python capitalize first letter of string without changing the rest

35

string[0].upper() + string[1:]

Comments

Submit
0 Comments